Home
last modified time | relevance | path

Searched hist:"988 c69f1bc23fe632ea5e6eb3c26a9e103c3ed41" (Results 1 – 1 of 1) sorted by relevance

/linux/mm/
H A Dswap.cdiff 988c69f1bc23fe632ea5e6eb3c26a9e103c3ed41 Fri Nov 05 21:37:25 CET 2021 Matthew Wilcox (Oracle) <willy@infradead.org> mm: optimise put_pages_list()

Instead of calling put_page() one page at a time, pop pages off the list
if their refcount was too high and pass the remainder to
put_unref_page_list(). This should be a speed improvement, but I have
no measurements to support that. Current callers do not care about
performance, but I hope to add some which do.

Link: https://lkml.kernel.org/r/20211007192138.561673-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Anthony Yznaga <anthony.yznaga@oracle.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>